﻿using Joy.Erp.BasicArchives.Core;
using Joy.Erp.BasicArchives.ItemMasters;
using System;

namespace Joy.Erp.BasicArchives.Production
{
    /// <summary>
    /// 计划订单备料
    /// </summary>
    public class PlanOrderPreparation : DocumentLineAggregateRoot, IChild
    {
        /// <summary>
        /// 销售订单
        /// </summary>
        public PlanOrder Document { get; set; }

        /// <summary>
        /// 料品
        /// </summary>
        public Guid ItemMasterId { get; set; }

        /// <summary>
        /// 料品
        /// </summary>
        public ItemMaster ItemMaster { get; set; }

        /// <summary>
        /// 料品编号
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 料品名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ItemSpec { get; set; }

        /// <summary>
        /// 需求数量
        /// </summary>
        public decimal Quantity { get; set; }

        /// <summary>
        /// 已领数量
        /// </summary>
        public decimal IssuedQuantity { get; set; }
    }
}
